// 引入React
 import React from "react"
// 设计Dom渲染包
import ReactDom from "react-dom"
// 准备数据
const list = [
  {id:1, name:'张三', salary:13500},
  {id:2, name:'李四', salary:11000},
  {id:3, name:'王老五', salary:15000}
]

// 渲染数据
const ele = (
  <ul>
    {list.map((item)=>(
      <li key={item.id}>
        <h3>姓名：{item.name}</h3>
        <h3>工资{item.salary}</h3>
      </li>
    ))}
  </ul>
)
ReactDom.render(ele,document.querySelector('#react'))